package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiT_Cash;
import cn.com.api.entity.ApiT_shops_apply;
import cn.com.api.mapper.base.T_shops_applyMapperBase;
import cn.com.util.*;

//DAO
public interface ApiT_shops_applyMapper extends T_shops_applyMapperBase {

	public List<Map<String, Object>> searAll(@Param("sname") String sname,
			@Param("stime") String stime, @Param("etime") String etime);

	public boolean updateMoneyAndRem(@Param("money") String money,
			@Param("remark") String remark, @Param("id") String id);

	public boolean updateMoneyAndRemAndStatus(@Param("money") String money,
			@Param("remark") String remark, @Param("status") String status,
			@Param("id") String id);

	public Map<String, Object> searById(@Param("id") String id);

	public boolean updateCheck(@Param("lose") String lose,
			@Param("status") String status, @Param("id") String id);

	public boolean updatePayMoney(@Param("num") String num,
			@Param("id") String id);

	public List<Map<String, Object>> searByShopLog(
			@Param("shopid") String shopid, @Param("time") String time,
			@Param("stime") String stime, @Param("etime") String etime);

	/**
	 * 按条件查询转账列表(预付款申请)
	 * @param conditions 为null不加任何搜索条件
	 * @return
	 */
	public List<ApiT_shops_apply> transferListPage(@Param("cond")ApiT_shops_apply conditions, @Param("page") PageInfo pageInfo);


	/**
	 * 按条件查询转账列表(提现申请)
	 * @param conditions 为null不加任何搜索条件
	 * @return
	 */
	public List<ApiT_Cash> cashListPage(@Param("cond")ApiT_Cash conditions, @Param("page") PageInfo pageInfo);

	/**
	 * 
	 * @param newCash
	 * @return
	 */
	public int updateCash(ApiT_Cash newCash);
}


